<template>
	<view class="container">
	    <rich-text :nodes="htmlStr" attrs="width:100px"></rich-text>
	</view>
</template>
<script>
	export default {
		data() {
			return {
        htmlStr:""

			};
		},
    async created(){

    },
    async mounted(){
      let data = await this.$api.reloadMinShop()
      let jg = await this.$api.getMinShop(data)
      if(jg){ //说明当前城市存在店铺
        let {id} = jg
        console.log("jgtest",jg)
        this.$api.ajax({
          url: "/web/app-zzjg/get-good-dinner-shop",
          data: {
            zzjgId: id
          },
          method: "get",
          header: {
            "Content-Type": "application/x-www-form-urlencoded"
          },
          success:(res)=> {
            // console.log(res);
            const { data } = res
            console.log(data.data)
            this.htmlStr = data.data.description
          }
        });
      }else{
        return
      }

    }
	}
</script>

<style lang="scss">

</style>
